package entity

import (
	"time"
)

type King struct {
	ItemID    int32 `gorm:"type:int;primary_key"`
	ServerID  int32 `gorm:"type:int;primary_key"`
	RoleID    int32
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (k *King) SetRoleID(roleID int32) {
	k.RoleID = roleID
}
